<template>
  <div>
    <switchItem :formItem="compConfig"></switchItem>
  </div>
</template>

<script lang="ts" setup>
import { ref, computed } from "vue"
import switchItem from "../../formitem/switch/index.vue"
import formItemForm from './config';
import { useColumnModel } from '@/components/draggable/hooks/useColumnModel';
const props = defineProps({
  element: []
})

const compConfig = ref(JSON.parse(JSON.stringify(formItemForm.component.settings)));
useColumnModel(compConfig, computed(() => props.element));
</script>

<style lang="less" scoped></style>